<template>
	<view class="main">
		<header-vue :back="true" title="发票中心"></header-vue>
		<view v-for="item in 10" :key="item" class="white-box font24 margin32" @click="goPage('/views/mine/detail')">
			<template v-if="!item">
				<view class="flex between store-title">
					<view class="flex start font24 fontbold-500">
						<i class="iconfont icon-store font24" style="height: 24rpx;margin-right: 4rpx;"></i>
						<view>新宜家高桥店</view>
					</view>
					<view class="order-status">已开票</view>
				</view>
				<view class="flex between arr-img">
					<view class="flex start">
						<image src="/static/login/bg.png"></image>
						<image src="/static/login/bg.png"></image>
						<image src="/static/login/bg.png"></image>
						<image src="/static/login/bg.png"></image>
					</view>
					<view>x6</view>
				</view>
			</template>
			<view v-else class="flex between start" style="align-items: flex-start;">
				<image src="/static/login/bg.png"></image>
				<view class="store-info font28 fontbold-500">
					空调清洗高温除尘菌让呼吸更清新空调清
				</view>
				<view class="order-status">已开票</view>
			</view>
			<view class="flex between invoice-info">
				<view class="flex column start between" style="height: 100%;align-items: flex-start">
					<view>电子普通发票-商品明细-个人</view>
					<view>抬头名称：填写的抬头名称</view>
				</view>
				<view class="flex price fontbold-500">
					<text class="font24">￥</text>
					<text class="font28">45</text>
				</view>
			</view>
			<view class="flex order-btn font28 fontbold-500">
				<view class="flex btn-2" @click="goPage('/views/mine/invoiceCenterDetail')">查看详情</view>
			</view>		
		</view>
	</view>
</template>

<script>
	import headerVue from '../../components/header.vue';
	
	export default {
		components: {
			headerVue
		},
		data() {
			return {
				imageUrl: '~@static/shop/',
				selectShow: false,
				showFilter: false,
				params: {
					keyword: '',
					type: ''
				}
			}
		},
		methods: {
			goPage(url) {
			    uni.navigateTo({ url });
			},
		}
	}
</script>

<style lang="scss" scoped>
	.main {
		background: #F6F6F6;
	}
	
	.margin32 {
		margin: 0 32rpx;
	}
	
	.price {
		color: #333333;
		align-items: baseline;
	}
	
	.white-box {
		background: $uni-bg-color;
		box-shadow: 0rpx 4rpx 20rpx 0rpx rgba(0,0,0,0.1);
		border-radius: 20rpx;
		padding: 28rpx;
		box-sizing: border-box;
		margin-top: 28rpx;
		
		.store-title {
			margin-bottom: 28rpx;
		}
		
		.order-status {
			color: #DF9824;
		}
		
		image {
			width: 100rpx;
			height: 100rpx;
			border-radius: 12rpx;
			margin-right: 20rpx;
			flex-shrink: 0;
		}
		
		.arr-img {
			align-items: flex-end;
			color: #666666;
		}
		
		.store-info {
			height: 100rpx;
			flex: 1;
			width: 0;
			align-items: flex-start;
			
			.icon-comment {
				margin-left: 26rpx;
			}
		}
		
		.invoice-info {
			height: 124rpx;
			background: #FAFAFA;
			border-radius: 12rpx;
			padding: 20rpx;
			box-sizing: border-box;
			margin-top: 28rpx;
		}
		
		.order-btn {
			margin-top: 28rpx;
			color: $uni-text-color-inverse;
			justify-content: flex-end;
			
			.btn-2 {
				width: 160rpx;
				height: 56rpx;
				background: #0785CF;
				border-radius: 100rpx;
			}
		}
	}
	
</style>
